package com.spcloud.msg.service;

import com.spcloud.msg.MessageBinder;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.messaging.Message;
import org.springframework.stereotype.Service;

/**
 * @author GuoChunbo
 * @create 2020-03-02 13:57
 * @Description: 类的描述
 */
@Service
public class MsgService {

    //监听接收消息通道名称
    @StreamListener("getreguser")
    public void getUserRegMessage(Message message){
        System.out.println("接收到的消息:"+message.getPayload());
    }

}
